package com.stylefeng.guns.modular.system.service;

import com.stylefeng.guns.modular.small.util.ResponseResultDTO;
import com.stylefeng.guns.modular.system.model.ConsumerCollection;
import com.baomidou.mybatisplus.service.IService;

/**
 * <p>
 * 用户收藏 服务类
 * </p>
 *
 * @author stylefeng
 * @since 2019-09-09
 */
public interface IConsumerCollectionService extends IService<ConsumerCollection> {

    /**
     * 通过消费者id查询收藏列表
     * @param consumerId
     * @return
     */
    ResponseResultDTO searchByConsumerId(Integer consumerId);

    /**
     * 通过消费者id 技师id查询收藏
     * @param consumerId
     * @param artificerId
     * @return
     */
    ResponseResultDTO searchByConsumerIdArtificerId(Integer consumerId,Integer artificerId);

    /**
     * 删除收藏数据 物理删除
     * @param consumerId
     * @param artificerId
     * @return
     */
    ResponseResultDTO deleteCollection(Integer consumerId,Integer artificerId);

    /**
     * 修改是否收藏的状态
     * @param artificerId
     * @param customerId
     * @param status
     */
    ResponseResultDTO isCollection(Integer artificerId, Integer customerId, Integer status);
}
